#!/usr/bin/env python# -*- coding: utf-8 -*-# @Time    : 2023/11/18 14:34# @Author  : zhaowp1109# @File    : package_type_api.py# @Description :from typing import Any, Listfrom fastapi import APIRouter,Depends,Requestfrom sqlalchemy.orm import Sessionfrom app.schemas.base import RespDetailSchemafrom app.services.package_servivces import package_service# from app.core.constants import ResponseCode,ResponseMessagefrom app.api.deps import get_headers,get_db,BaseHeaderrouter = APIRouter()@router.post("/pack_info",name="打包类型",response_model=RespDetailSchema)def package_type_list(db: Session = Depends(get_db),header:BaseHeader = Depends(get_headers)) -> Any:    lan = header.lang    data = package_service.package_type_list(db,lan)    return RespDetailSchema(data=data)